﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.IO;
using System.Windows.Forms;
using Manager;

namespace cbFileManager
{
    public partial class pForm : Form
    {
       
        

        public pForm()
        {
            InitializeComponent();
        }

        private void pForm_Load(object sender, EventArgs e)
        {
            //Manager.PluginManager pgLoader = new PluginManager();

            //string teste = String.Empty;

            //for (int i = 0; i < pgLoader.PluginName.Count; i++)
            //{

            //    teste +=  Path.GetFileNameWithoutExtension(pgLoader.PluginName[i]);
                
            //}

            

            // Manager.MessageError.ShowError(teste, "?das");
          
            

            

            //Org.Mentalis.Utilities.FileAssociation fAssociation = new Org.Mentalis.Utilities.FileAssociation();

            //fAssociation.Extension = "cbs";
            //fAssociation.FullName = "cb Sprite Sheet";
            //fAssociation.IconPath = "fileicon.ico";
            //fAssociation.ContentType = "application/cbFileManager";
            //fAssociation.AddCommand("open", Application.StartupPath + "cbFileManager.exe %1");
            //fAssociation.Create();

           

            ListImages.SelectedIndexChanged += new EventHandler(Manager.Handlers.Handler_GetListIndex);
            Manager.ImageHandler._pBox = pBox;
            Manager.ImageHandler.ListIndex(ListImages);

            btAddImage.Click += new EventHandler(Handlers.UIhandlers.ClickAddNewImage);
            btRemoveImage.Click += new EventHandler(Handlers.UIhandlers.ClickRemoveImage);
            btSalvar.Click += new EventHandler(Handlers.UIhandlers.SaveFileButton);



            
        }


      
    }
}
